package top.fangw.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import top.fangw.common.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import top.fangw.common.core.entity.TenantBaseTreeEntity;

/**
 * <p>
 * 用途：存储机构信息
 * </p>
 *
 * @author fangw
 * @since 2024-03-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tbl_sys_org_info")
@Schema(name = "SysOrgInfo", description = "用途：存储机构信息")
public class SysOrgInfo extends TenantBaseTreeEntity {

    @Schema(description = "简称")
    @TableField("simple_name")
    private String simpleName;

    @Schema(description = "排序")
    @TableField("sort")
    private Integer sort;

    @Schema(description = "其他表不能使用此字段进行关联，存在重复的情况")
    @TableField("code")
    private String code;

    @Schema(description = "1-公司，2-部门 3-小组")
    @TableField("type")
    private String type;

    @Schema(description = "0-自身，1-服务方，如果有需求做区分，可使用此字段")
    @TableField("org_type")
    private String orgType;

    @Schema(description = "所属父级的根机构编码")
    @TableField("parent_org_id")
    private String parentOrgId;

    @Schema(description = "负责人")
    @TableField("master")
    private String master;

    @Schema(description = "负责人姓名")
    @TableField("master_name")
    private String masterName;

    @Schema(description = "机构地址")
    @TableField("address")
    private String address;

    @Schema(description = "联系电话")
    @TableField("phone")
    private String phone;

    @Schema(description = "传真")
    @TableField("fax")
    private String fax;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @Schema(description = "0-未启用，1-启用")
    @TableField("useable")
    private String useable;

    @Schema(description = "是否可删除0：可删除  1：不可删除")
    @TableField("is_deletable")
    private String isDeletable;

}
